Skip to content

feat(deploy): refuse host-side agents unless explicitly allowed - #140

Merged
gabrielvfonseca merged 1 commit into
mainfrom
fix/deploy-default-local-docker
Nov 11, 2026
Merged

gabrielvfonseca merged 1 commit into
mainfrom
fix/deploy-default-local-docker

Conversation

@gabrielvfonseca

Copy link
Copy Markdown
Contributor

Summary

  • tools-agent (agents inside the server process, with its privileges) is refused unless FRONTAL_CODE_SERVER_ALLOW_HOST_AGENT=1 is set. local-docker stays the default.
  • Managed deploy configs that already run inside their own VM or pod set the opt-in explicitly: Fly, Kubernetes, Terraform, deploy/deploy.yaml.
  • The compose default is local-docker. That path needs the docker-worker override, which provides the socket proxy.
  • docs/CONTAINERS.md describes the default and the opt-in.

Verification

  • cargo fmt --check, cargo clippy -D warnings, and cargo test -p code-server pass.
  • New unit test: tools-agent needs the opt-in, and local-docker doesn't.

Note: independent of #139 (medium-priority fixes). Both touch lib.rs in separate areas.

🤖 Generated with Claude Code

- The server refuses FRONTAL_CODE_SERVER_LANE_TRANSPORT=tools-agent unless
  FRONTAL_CODE_SERVER_ALLOW_HOST_AGENT=1 is set. local-docker stays the default.
- Managed deploy configs (Fly, Kubernetes, Terraform, deploy.yaml) set the
  opt-in, because their VM or pod is the isolation boundary.
- The compose default is local-docker. It needs the docker-worker override
  for the socket proxy.
- docs/CONTAINERS.md describes the default and the opt-in.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 56 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c3a5cd09-2da2-4231-a6e5-4d89311bf296
Commits

Reviewing files that changed from the base of the PR and between 660dc55 and 55b8a1d.

Files selected for processing: 8

  • crates/code-server/src/lib.rs
  • deploy/deploy.yaml
  • deploy/fly.toml
  • docs/CONTAINERS.md
  • infrastructure/compose/.env.example
  • infrastructure/compose/docker-compose.yml
  • infrastructure/kubernetes/base/configmap.yaml
  • infrastructure/terraform/frontal-code-server.tf
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@gabrielvfonseca
gabrielvfonseca merged commit adb05d3 into main Nov 11, 2026
28 checks passed
@gabrielvfonseca
gabrielvfonseca deleted the fix/deploy-default-local-docker branch November 11, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant